package march.test_3_29;

import java.util.ArrayList;
import java.util.Scanner;

public class TestMain1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String str = scanner.nextLine();
            ArrayList<String> arrayList = cotains(str);
            String tmp = scanner.nextLine();
            if(arrayList.contains(tmp)) {
                System.out.println("Ignore");
            } else {
                System.out.println("Important!");
            }
        }
    }
    public static ArrayList<String> cotains(String str) {
        ArrayList<String> arrayList = new ArrayList<>();
        for (int i = 0; i < str.length(); i++) {
            if(str.charAt(i) == '"') {
                int cur = i + 1;
                while (cur < str.length()&&str.charAt(cur) != '"') {
                    cur++;
                }
                String tmp = str.substring(i + 1,cur);
                arrayList.add(tmp);
                i = cur+1;
            } else {
                int cur = i;
                while (cur < str.length() && str.charAt(cur) != ',') {
                    cur++;
                }
                String tmp = str.substring(i,cur);
                arrayList.add(tmp);
                i = cur;
            }

        }
        return arrayList;
    }
}
